//
//  LifeItemCell.m
//  laowu
//
//  Created by yinqy on 15/4/28.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "LifeItemCell.h"

@implementation LifeItemCell

+(instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
    
    static  NSString  *CellIdentiferId = @"LifeItemCell";
    LifeItemCell  *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentiferId];
    if (cell == nil) {
        NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"LifeItemCell" owner:nil options:nil];
        cell = [nibs lastObject];
    }
    return cell;
}

-(void)initData:(SafeInfoResult *)result{
    [_image sd_setImageWithURL:[NSURL URLWithString:result.title_img]];
    [_title setText:result.title];
    [_subTitle setText:result.des];
}

@end
